package com.sl.mes.db.dao;

import com.sl.mes.db.vo.MesGrouponRules;
import com.sl.mes.db.vo.MesGrouponRulesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MesGrouponRulesMapper {
    long countByExample(MesGrouponRulesExample example);

    int deleteByExample(MesGrouponRulesExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MesGrouponRules record);

    int insertSelective(MesGrouponRules record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesGrouponRules selectOneByExample(MesGrouponRulesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesGrouponRules selectOneByExampleSelective(@Param("example") MesGrouponRulesExample example, @Param("selective") MesGrouponRules.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    List<MesGrouponRules> selectByExampleSelective(@Param("example") MesGrouponRulesExample example, @Param("selective") MesGrouponRules.Column ... selective);

    List<MesGrouponRules> selectByExample(MesGrouponRulesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesGrouponRules selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") MesGrouponRules.Column ... selective);

    MesGrouponRules selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesGrouponRules selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") MesGrouponRules record, @Param("example") MesGrouponRulesExample example);

    int updateByExample(@Param("record") MesGrouponRules record, @Param("example") MesGrouponRulesExample example);

    int updateByPrimaryKeySelective(MesGrouponRules record);

    int updateByPrimaryKey(MesGrouponRules record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int logicalDeleteByExample(@Param("example") MesGrouponRulesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_groupon_rules
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int logicalDeleteByPrimaryKey(Integer id);
}